@extends('layouts.template')

@section('title', '个人中心')

@section('header')
@endsection

@section('content')
    <script src="{{asset('dist/wallet/cashStart.js')}}"></script>
    <script>
        var balance = {{$wallet->balance}};
        var cash_minimum = Number('{{$cash_minimum}}');
    </script>
    <div>
        <form id="form">
            {{csrf_field()}}
            <div class="member_main">
                <ul class="overflow_h">
                    <li><a href="{{url('wallet/accountbind')}}" onclick="return confirm('要更改提现账号？')"><span class="m_sp01 member_ico06"></span><span class="m_sp02">{{$wallet->alipay_name}}</span><span class="mem_ico"></span></a></li>
                </ul>
            </div>
            <div class="wallet02 mar07">
                <h2>提现金额
                    @if (!$wallet->assure_fund)
                        <label style="font-size:0.8rem;color:#ff0000;"><a href="{{url('wallet/assurefund')}}" style="color:#ff0000;">（您未缴纳保证金，将收取2%提现手续费）</a></label>
                    @endif
                </h2>
                <p class="mar07"><i class="text01">¥</i><input name="amount" type="text" class="inp_04" placeholder="请输入提现金额"></p>
                <div class="w_t01"><cite>提现中金额 {{$cashingAmount}}元</cite>可提余额 {{$wallet->balance}}元</div>
            </div>
            <div class="wallet02 mar07">
                <h2>钱包密码</h2>
                <p class="mar07" style="border-bottom:none"><i class="m_sp01 member_ico02" style="margin-top:0"></i><input name="wallet_password" type="password" class="inp_04" placeholder="请输入钱包密码"></p>
            </div>
            <div class="wallet03"><a href="{{url('wallet/password')}}?redirectUrl={{url('wallet/cashstart')}}">忘记钱包密码？</a></div>
            <a class="but04 mar07" @click="submit">确认提现</a>
            <div style="width:25%;margin: 15px auto;color:gray;font-size:0.8rem;">温馨提示：7天内只能提现1次</div>
        </form>
    </div>
@endsection